package ${ package }.${entityName};

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

<#import "CopyRight.ftl" as my>
<@my.CopyRight/>

public class ${ className } extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

<#list properties as pro>  
	<#if pro.isKey>
	private String id;	<#-- 代码规范：数据库表主键映射成id -->  	
	<#else>
	private ${pro.type} ${pro.fieldName};			<#if pro.comment != "">//${pro.comment}</#if>
	</#if>
</#list>

	
<#list properties as pro>
	<#-- 对常用的几个字段不生成，已经继承BaseEntity -->  
	<#if pro.isKey>
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	</#if>
	
	<#if pro.isKey?string('yes', 'no')=="no">
	<#if "createBy,createDept,createTime,updateBy,updateTime"?index_of(pro.fieldName) == -1>
	public ${pro.type} get${pro.fieldName?cap_first}() {
		return this.${pro.fieldName};
	}
	public void set${pro.fieldName?cap_first}(${pro.type} ${pro.fieldName}) {
		this.${pro.fieldName} = ${pro.fieldName};
	}	
	</#if>
	</#if>
</#list>
}
